home *** CD-ROM | disk | FTP | other *** search
/ Minami 58 / MINAMI58.ISO / Varios / Juegos Flash / Gold Yard.exe / scripts / DefineSprite_324 / frame_74 / DoAction.as
Text File  |  2003-04-29  |  714b  |  22 lines

  1. _root.gameover = 1;
  2. hero_status = "alive";
  3. final_time = new Date();
  4. final_date = final_time.getDate();
  5. if(initial_date == final_date)
  6. {
  7.    final_hours = final_time.getHours();
  8. }
  9. else
  10. {
  11.    final_hours = final_time.getHours() + 24;
  12. }
  13. final_minutes = final_time.getMinutes();
  14. final_seconds = final_time.getSeconds();
  15. initial_total = initial_hours * 3600 + initial_minutes * 60 + initial_seconds;
  16. final_total = final_hours * 3600 + final_minutes * 60 + final_seconds;
  17. seconds_taken = final_total - initial_total;
  18. total_minutes = Math.floor(seconds_taken / 60);
  19. total_seconds = seconds_taken - total_minutes * 60;
  20. _root.soundtrack_movie.gotoAndStop("off");
  21. _root.congratulations.gotoAndPlay("on");
  22.